#include "StaticJavaLib.h"
#include "gc.h"
struct SyntaxTest3{
};

int SyntaxTest3_factorial(int n){
  int result;
  int i;
  StaticJavaLib_assertTrue(n >= 1);
  result = 1;
  i = 2;
  while(i <= n){
    result = result * i;
    StaticJavaLib_printlni(result);
    i = i + 1;
  }
  return result;
}

void main(int argc,char** argv){
  int i;
  i = 8;
  SyntaxTest3_factorial(i);
  StaticJavaLib_printlni(i);
  gc_recycle();
}
